import request from '@/plugins/request';
// 选题列表
export function targetContentList(data) {
    return request({
      url: "/v1/buss/target-content/list",
      method: "get",
      params: data,
    });
}
// 列表筛选条件
export function topicCondition(data) {
    return request({
      url: "/v1/buss/target-content/list-condition",
      method: "get",
      params: data,
    });
}    
//新增选题
export function targetContentCreate(data) {
    return request({
        url: "/v1/buss/target-content/create",
        method: "post",
        data,
    });
}
//删除选题
export function targetContentDel(data) {
    return request({
        url: "/v1/buss/target-content/delete",
        method: "post",
        data,
    });
}
//编辑选题
export function targetContentUpdate(data) {
    return request({
        url: "/v1/buss/target-content/update",
        method: "post",
        data,
    });
}
// 选题详情
export function targetContentInfo(data) {
    return request({
      url: "/v1/buss/target-content/info",
      method: "get",
      params: data,
    });
}
//上传文件
export function uploadExecl(data,that) {
    return request({
        url: "/v1/buss/target-content/upload-execl",
        method: "post",
        isUpload:true,
        data,
        signal:that.controller.signal
    });
}